It lists the name of the server. We can change hostname of the server in 2 ways:
1) Permanent Change:
2) Temporary Change
1) Permanent Change:
-
Go to the file located in /etc/hostname (We have to edit the hostname in this file)
# vi /etc/hostname - Provide the name whichever you want the hostname and save the file and exit from the file.
- After performing this please restart the system. The command to restart the system is
# init 6
# hostname <name>
Exit and login the server. It will rename your hostname
Exit and login the server. It will rename your hostname
Comments
Post a Comment